package com.harveyguo.nihonngo.model.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * 教练实体
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = true)
@Table(name = "coaches")
public class Coach extends User {

    // 教练特有字段
    private String certification; // 教练证书

    private String speciality; // 专长领域

    private Integer teachingYears; // 教学年数

    private String achievements; // 成就/荣誉

    private Double hourlyRate; // 课时费

    private String availableTime; // 可授课时间

    private String teachingStyle; // 教学风格

    private Boolean isVerified = false; // 是否认证

    // 关联的拳馆
    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "gym_id")
    private BoxingGym boxingGym;
}